//获取分类列表
export const getKuCate = `
query{
  getKuCate{
    id
    name
  }
}`;
//获取仓库列表-不分页
export const getKuData = `
query{
  getKuData{
    id
    name
  }
}`;
// 获取仓库列表
export const getKuList = `
query($page:Int,$cid:Int){
    getKuList(page:$page,cid:$cid){
    list{
      id
      name
  }
  lastpage
  total
  }
}
`;
// 仓库详情
export const getKuInfo = `
query($ku_id:Int){
    getKuInfo(ku_id:$ku_id){
        id
        name
        admin_name
        address
  }
}
`;
// 获取仓库商品分类
export const getKuGoodsCate = `
query($ku_id:Int){
    getKuGoodsCate(ku_id:$ku_id){
        id
        name
  }
}
`;
// 获取仓库商品列表
export const getKuGoodsList = `
query($page:Int,$cid:Int,$ku_id:Int){
    getKuGoodsList(page:$page,cid:$cid,ku_id:$ku_id){
    list{
      id
      name
      goods_id
      nums
  }
  lastpage
  total
  }
}
`;
// 获取仓库商品变动明细
export const getKuGoodsChangeList = `
query($page:Int,$id:Int){
    getKuGoodsChangeList(page:$page,id:$id){
    list{
        id
        name
        goods_id
        nums
        after
        memo
        createtime
  }
  lastpage
  total
  }
}
`;
// 获取仓库商品详情
export const getKuGoodsInfo = `
query($id:Int){
    getKuGoodsInfo(id:$id){
        id
        name
        goods_id
        nums
        goods_image
        subtitle
  }
}
`;
//获取商品分类
export const getGoodsCate = `
query{
    getGoodsCate{
    id
    name
  }
}`;
// 获取商品列表
export const getGoodsList = `
query($page:Int,$cid:Int,$keywords:String){
    getGoodsList(page:$page,cid:$cid,keywords:$keywords){
    list{
        id
        name
        nums
        delivery_price
        price
        score
        stock
        goods_image
  }
  lastpage
  total
  }
}
`;
// 获取商品详情
export const getGoodsInfo = `
query($id:Int){
    getGoodsInfo(id:$id){
        id
        name
        goods_id
        nums
        goods_image
        subtitle
  }
}
`;
// 获取商品所在仓库
export const getGoodsKuList = `
query($page:Int,$goods_id:Int){
    getGoodsKuList(page:$page,goods_id:$goods_id){
    list{
        id
        ku_name
		ku_goods_id
        nums
  }
  lastpage
  total
  }
}
`;

//实物库存
// 车友实物账户
export const getAmountRegion = `
query($driver_id:Int){
  getAmountRegion(driver_id:$driver_id){
    id
    region_id
    amount
    region_name
  }
}
`;
// 车友实物账户总量
export const getAmountRegionTotal = `
query($driver_id:Int){
  getAmountRegionTotal(driver_id:$driver_id){
    amount
  }
}
`;
// 车友实物账户变动明细
export const getAmountRegionLog = `
query($page:Int,$amount_id:Int,$start:String,$end:String){
  getAmountRegionLog(page:$page,amount_id:$amount_id,start:$start,end:$end){
    list{
      id
      memo
      money
      after
      createtime
  }
  lastpage
  total
  }
}
`;
// 地域充值单价
export const getRegionAmountRechargePrice = `
query{
  getRegionAmountRechargePrice{
    id
    name
    price
  }
}
`;
// 地域充值价格组
export const getAmountRechargePriceGroup = `
query($id:Int){
  getAmountRechargePriceGroup(id:$id){
    amount
    text
    price
    money
  }
}
`;
// 默认地域充值单价
export const getDefaultAmountRechargePrice = `
query($longitude:Float,$latitude:Float,$driver_id:Int){
  getDefaultAmountRechargePrice(longitude:$longitude,latitude:$latitude,driver_id:$driver_id){
    id
    name
    price
    amount
    amount_id
  }
}
`;
// 车友实物账户变动明细-总
export const getAmountLog = `
query($driver_id:Int,$page:Int,$start:String,$end:String){
  getAmountLog(driver_id:$driver_id,page:$page,start:$start,end:$end){
    list{
      id
      memo
      money
      after
      createtime
  }
  total
  lastpage
  }
}
`;
// 移库单记录
export const getDeliveryMoveKu = `
query($delivery_id:Int,$page:Int,$start:String,$end:String){
  getDeliveryMoveKu(delivery_id:$delivery_id,page:$page,start:$start,end:$end){
    list{
      id
      order_sn
      amount
      remarks
      createtime
      nickname
      from_fill_name
      to_fill_name
  }
  total
  lastpage
  }
}
`;
// 入库单记录
export const getDeliveryCg = `
query($delivery_id:Int,$page:Int,$start:String,$end:String){
  getDeliveryCg(delivery_id:$delivery_id,page:$page,start:$start,end:$end){
    list{
      id
      type_text
      order_sn
      amount
      remarks
      createtime
      nickname
      fill_name
  }
  total
  lastpage
  }
}
`;
// 获取拼单价格组
export const getPinRechargePriceGroup = `
query($id:Int){
  getPinRechargePriceGroup(id:$id){
    amount
    text
    price
    money
  }
}
`;
// 计算价格（实物充值）
export const jisuanPinRechargePrice = `
query($id:Int,$money:Float){
  jisuanPinRechargePrice(id:$id,money:$money){
    amount
    text
    price
    money
  }
}
`;
// 获取报销明细
export const getBaoxiaoList = `
query($type:Int,$page:Int){
  getBaoxiaoList(type:$type,page:$page){
    list{
      id
      staff_id
      content
      money
      staff_name
      createtime
      updatetime
      des
      status
      image
      admin_name
      status_text
  }
  total
  lastpage
  }
}
`;
// 获取盘库明细
export const getAmountPanList = `
query($page:Int,$start:String,$end:String,$type:String){
  getAmountPanList(page:$page,start:$start,end:$end,type:$type){
    list{
      id
      amount
      current
      cha
      staff_id
      staff_name
      level
      level_color
      createtime
      fill_name
      service_name 
      service_id
      image{ image }
      fill_id
      change
      start
      end
      prev_amount
      prev_cha
      prev_current
  }
  total
  lastpage
  }
}
`;
// 获取溶液盘库记录明细
export const getAmountChangeList = `
query($page:Int,$start:String,$end:String,$fill_id:Int){
  getAmountChangeList(page:$page,start:$start,end:$end,fill_id:$fill_id){
    list{
      id
      amount
      fill_id
      createtime
      fill_name
      memo
      after
  }
  total
  lastpage
  title
  change
  }
}
`;